package ${package.Mapper};

import ${package.Entity}.${entity};
import java.util.List;

/**
 * ${table.commentt!} Mapper 接口
 *
 * @author ${author}
 * @date ${date}
 */
<#if kotlin>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
public interface ${table.mapperName} {

    /**
     * ${table.comment}分页
     *
     * @param ${table.entityName?uncap_first} 查询条件
     * @return 分页信息
     */
    List<${table.entityName}> listPage${table.entityName}(${table.entityName} ${table.entityName?uncap_first});

    /**
     * ${table.comment}列表
     *
     * @param ${table.entityName?uncap_first} 查询条件
     * @return 列表信息
     */
    List<${table.entityName}> list${table.entityName}(${table.entityName} ${table.entityName?uncap_first});

    /**
     * ${table.comment}新增
     *
     * @param ${table.entityName?uncap_first} 新增信息
     * @return 影响记录行数
     */
    int insert${table.entityName}(${table.entityName} ${table.entityName?uncap_first});

    /**
     * ${table.comment}修改
     *
     * @param ${table.entityName?uncap_first} 主键、待修改信息
     * @return 影响记录行数
     */
    int update${table.entityName}ById(${table.entityName} ${table.entityName?uncap_first});


    /**
     * ${table.comment}详情
     *
     * @param ${table.entityName?uncap_first} 根据主键获取详情
     * @return ${table.comment}详情
     */
    ${table.entityName} get${table.entityName}ById(${table.entityName} ${table.entityName?uncap_first});

}
</#if>
